/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const systemRouter = {
	path: '/system',
	component: Layout,
	redirect: '/system',
	name: '系统管理',
	meta: {
		title: '系统管理',
		icon: 'table'
	},
	children: [{
			path: 'auto-code',
			component: () => import('@/views/system/auto-code/index'),
			name: '代码生成',
			meta: {
				title: '代码生成',
				auth: "system:autoCode"
			}
		},
		{
			path: 'user',
			component: () => import('@/views/system/user/user-list'),
			name: '用户管理',
			meta: {
				title: '用户管理',
				auth: "system:user"
			}
		},
		{
			path: 'userAuth',
			component: () => import('@/views/system/user-auth/user-auth-list'),
			name: '角色权限配置',
			meta: {
				title: '角色权限配置',
				auth: "system:roleMenu"
			}
		},
		{
		path: 'file',
		component: () => import('@/views/system/file/file-index.vue'),
		name: '文件管理',
		meta: { title: '文件管理', auth:"system:file" }
		},
		{
			path: 'dict',
			component: () => import('@/views/system/dict/dict-index.vue'),
			name: '字典管理',
			meta: {
				title: '字典管理',
				auth: "system:dict"
			}
		},
		{
			path: 'flowable',
			component: () => import('@/views/system/flowable/flowable-index.vue'),
			name: '流程管理',
			meta: {
				title: '流程管理',
				auth: "system:flowable"
			}
		},
		{
			path: 'flowFrom',
			component: () => import('@/views/flowable/flow-from/flow-from-index.vue'),
			name: '流程表单配置',
			meta: {
				title: '流程表单配置',
				auth: "flowable:flowFrom"
			}
		},
		{
			path: 'testFlowable',
			component: () => import('@/views/flowable/test-flowable/test-flowable-index.vue'),
			name: '测试',
			meta: {
				title: '测试',
				auth: "flowable:testFlowable"
			}
		},
	]
}
export default systemRouter
